package liczba;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;

public class LiczbaTest4 {
	Liczba l;
	
	@Before
	public void init() {
		l = new Liczba(10);
	}
	
	@Ignore
	@Test(timeout=5)
	public void timeTest() throws Exception {
		@SuppressWarnings("unused")
		Liczba licz = new Liczba("1010101010101010", 2);
	}
	
	@Test(expected=LiczbaEx.class)
	public void testConstEx() throws Exception {
		@SuppressWarnings("unused")
		Liczba licz = new Liczba("10", 20);
	}
	
	@Test
	public void testCalc() throws Exception {
		assertEquals(l.zapis(9), "11");
	}
	
	@After
	public void obliterate() {
		l=null;
	}
}
